<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        body{
            width: 100vh;
            height: 100vh;
            background: #34495e;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        main{
            width: 100px;
            height: 100px;
            background-color: wheat;
            animation-name: hd;
            animation-duration: 5s;
            
        }
        @keyframes hd{
            0%{
                background: wheat;

            }
            25%{
                transform: scale(2);
            }
            65%{
                transform: scale(1);
            }
            100%{
                background: violet;
            }
        }
    </style>
</head>
<body>
    <main></main>
</body>
</html>